const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token, // 将token 作为公共的访问属性放出
  name: state => state.user.userinfo.username, // 建立用户名称的映射
  userId: state => state.user.userId, // 建立用户ID的映射
  staffPhoto: state => state.user.userinfo.staffPhoto, // 建立用户头像的映射
  companyId: state => state.user.userinfo.companyId // 建立与用户ID 的快捷访问
}
export default getters
